package mode.strategy;

/**
 * 策略模式测试
 *
 * @author xjx
 * @date 2023/7/31 10:25
 */
public class MainTest {
    public static void main(String[] args) {
        Order order = new Order("20220731", 100);
        //微信支付
        System.out.println(order.pay("weChat"));
        //支付宝支付
        System.out.println(order.pay("Ali"));
        //现金支付
        System.out.println(order.pay("cash"));
    }
}
